/* eslint-disable no-unused-vars */
let {expense} = require("./expense_schema.js");
module.exports = {
    getExpense:function(req,res,err){
        // console.log(req.query,"getExpense");
        let user = req.query.user;
        expense.find({user},{_id:false,__v:false}).then((data)=>{
            res.send(data)
        })
    }
}